import java.util.Scanner;

public class Homework08 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);//创建对象
        int a =s.nextInt();//接收数据
        int[] arr =new int[a+1];//定义
        int x=1;//由题示a=1表示灯泡为开
        for (int i = 0; i <=a; i++) {
            arr[i]=0;
        }
        for (int i = 2; i <=a; i++) {//从第二个人开始循环
            x=i;
        while (x%i == 0 && x<a){//判断两者间是否为倍数关系，且k<n
            if(arr[x]==0)
                arr[x]=1;
            else
                arr[x]=0;
            x++;
        }
        x=1;
        }
        for (int i = 1; i <=a ; i++) {
            System.out.println(arr[i]);//输出
        }
        s.close();
    }
}
